package com.boco.blch.analysiser.compliance.HW.manager;



import com.boco.blch.analysiser.compliance.ComplianceResolved;
/**
 * @author 黄戈
 * MPPDB MPPDB 审计日志文件权限最小化安全基线要求项
 *
 */


public class BOCO_gbase_LogAudit_AuditLogFileMinAuth implements ComplianceResolved {
	
	
	//private final static String GbaseStart="gbase-start";
	//private final static String GbaseEnd="gbase-end";
	//private final static String GClusterStart="gcluster-start";
	//private final static String GClusterEnd="gcluster-end";
	//private final static String EXPECT_RESULT = "-rw-------";
	//private final static String FILE_RESULT = "drwx------";

	@Override
	public int realEchoResolved(String echoResult) {
		//boolean gclusterFlag=true;
		//boolean gbaseFlag=true;
		if(!echoResult.equals("")&&echoResult!= null&&(!echoResult.contains(NoPermission1)&&!echoResult.contains(NoPermission2)&&!echoResult.contains(NoPermission3))){
			if(echoResult.contains("boco-mpp-result:error")){
				return FAILED;
			}else{
				return SUCCESS;
			}
		}
        else{
		return FAILED;	
	 }
		
 }
	
	/*
*/

}
